﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SmsWeb.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
</head>
<body style="width:980px">
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0">
            <tr>
                <td width="100">
                    短信号码：
                </td>
                <td>
                    <asp:RadioButtonList ID="radPhoneNumber" runat="server" RepeatLayout="Flow" 
                        CellPadding="5">
                    <asp:ListItem Text="13798049423" Value="13798049423" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="13697447877" Value="13697447877"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td width="100">
                    短信内容：
                </td>
                <td>
                    <asp:TextBox runat="server" Width="100%" ID="txtContent" ClientIDMode="Static" TextMode="MultiLine"
                        MaxLength="512" Rows="5"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="left">
                    <asp:Button runat="server" ID="btnSave" Text="保存" OnClientClick="return validate();" style="margin-left:100px"
                        OnClick="btnSave_Click" Font-Bold="True" Font-Size="Medium" Height="34px" Width="80px" />
                </td>
            </tr>
                        <tr>
                <td colspan="2" align="left">
                    <asp:Label ID="labMessage" Text="" runat="server" Visible="false" style="margin-left:100px"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
<script type="text/javascript">
    function validate() {
        return document.getElementById("txtContent").value != "";
    }
    
    window.onload = function () { document.getElementById("txtContent").focus(); }
</script>
</html>
